package drg_group.suzhou_2023.MDC;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import drg_group.suzhou_2023.Base;
import drg_group.suzhou_2023.MedicalRecord;
import drg_group.suzhou_2023.ADRG.*;

public class MDCD{
    public static String group(MedicalRecord record){
        String[] mdc_zd={"K10.212","C03.100x002","C02.000","D18.000x501","Q38.600x004","J39.212","J38.400x004","D17.700x021","S00.403","K11.102","S11.201","D18.001","J38.000x011","D02.303","D18.000x505","K05.400x002","J39.200x004","K14.300x004","K13.200x007","S02.711","H72.900","H65.300x001","S02.612","A36.000","C03.900","D37.000x006","C11.100","K11.302","B49.x09","J01.001","C79.503","C09.900","Q16.200","Q37.000","H61.804","K10.802","S01.500x022","A18.203","K05.100x005","C71.900x009","J04.000x008","C11.300","K12.103","T70.000","M31.301","B37.000","J32.006","H93.101","S09.800x002","B37.001","H74.300x004","S11.002","K05.100x010","Q27.800x027","J95.800x013","K04.000x008","C10.102","K06.800x009","K12.217","H74.300","C30.000","K09.800x005","C11.800","K14.300x001","J38.000x006","K13.000x014","S00.803","J39.210","C47.000x009","C00.404","J31.200","H61.100x002","S15.800x003","C02.200","K11.201","B00.201","K08.202","K13.000x016","D22.400x002","J38.700x027","H83.301","D18.000x506","K06.000x004","J32.902","D10.500x001","S01.300x061","K12.100x002","T90.800","H90.300","D36.700x005","J38.101","B44.800x006","J38.718","C31.800","Q17.900","C06.100x004","C14.800x003","H83.101","R49.201","H73.801","B49.x05","K07.600x001","J34.800x033","K11.500x003","K13.011","C13.901","J03.000","K07.100x010","M95.002","C30.005","S09.901","K13.200x011","K12.105","D03.000","C10.800x002","H90.000","J38.000x002","D18.100x004","D38.003","D00.000x005","K11.204","D00.011","D10.305","K09.004","B87.400x001+H94.8*","Q38.300","K14.900x002","J38.102","C41.007","C08.800","H95.800","D10.700","C41.000x021","K13.700x007","K07.003","K13.204","G47.300x035","T17.300","K07.303","K07.200x005","S00.800x053","K12.109","K10.000x003","J38.719","S13.400","C79.801","K11.500x005","J95.005","C14.002","K00.603","J33.803","K08.802","Q16.103","H90.600","C06.100","D22.000","C11.102","K01.100","C03.000x002","D17.001","K06.100x003","C06.101","K00.400x001","D14.004","J34.103","D10.501","C00.102","J34.000x010","C14.001","C79.800x812","Q36.901","J38.302","Q18.100x003","Q34.801","H60.200","J32.102","B02.801+H62.1*","D37.000x011","D37.019","K03.600x001","C02.900x002","J01.900x003","J02.905","H83.800x004","J38.717","Q18.805","K10.209","E14.600x031","J34.812","S10.700","C02.000x002","K00.600x008","D10.000","J38.700x013","C14.800x005","C41.000x023","K13.101","K08.201","D00.002","J39.218","K00.000x004","H81.800","K06.801","E85.400x006","J38.700x009","J38.703","S01.001","K00.202","Q17.303","K02.800x005","T28.501","K07.300x009","L04.001","J38.000x005","J34.803","Q18.807","K14.803","K06.800x015","K06.806","K13.012","J38.303","Q67.400x906","K13.100","C79.800x840","J34.800x002","S02.600x061","K05.000","S17.000x001","S19.800x004","C10.300","C30.002","C76.003","J04.001","Q16.101","S10.102","D10.500x002","J09.x05+H67.1*","K13.000x007","C47.000x006","E85.401","R04.000","C44.300","K07.600","H93.001","K13.005","Q31.804","K00.200x001","C49.000x005","J34.100x008","Q37.200","H80.100x002","K03.104","K09.900x001","Q17.803","J03.900x006","D37.000x014","H90.801","K07.300x005","S15.005","D17.002","C30.003","M95.204","C00.800","K11.301","K07.305","K10.808","S02.412","J32.905","C79.800x806","J38.400","H69.000","C32.104","S09.800x003","C78.300x010","D10.309","E11.600x031","J33.002","C44.302","J35.803","I88.900x004","K04.703","K00.800x002","B37.003","K14.802","D16.403","C31.801","J10.803+H67.1*","J35.901","K13.700x011","Q17.400","K08.203","C00.302","J32.800x007","E10.600x032","K07.500x002","T27.401","K07.007","K13.400x002","Q16.000","S01.300x031","Q18.800x004","D10.401","J35.000","K11.800x007","T28.000x002","C78.301","H72.001","A18.800x006+K93.8*","D18.000x809","S13.402","K08.803","C06.902","C02.201","D17.700x032","B05.300+H67.1*","Q38.400x001","K12.100x012","D18.000x808","K12.214","K10.301","K10.809","C79.200x008","D37.000x007","K00.600x006","K14.800x013","C44.401","H91.901","Q67.401","K13.700x004","H69.800","H60.503","S00.002","J10.100x004","S01.700","B00.203","H74.300x003","S09.907","J34.813","S15.004","D14.008","J34.101","J34.800x009","D18.000x823","K03.400","Q38.200","J32.000x009","R06.700","K00.801","K04.007","Q32.101","D18.100x010","H66.900x003","K07.603","K07.100x008","H83.800x003","H81.100","Z45.303","K09.203","K12.207","K13.206","Q30.800x007","S00.500x051","Q38.300x007","H90.500","J39.224","D22.200x002","D16.400x019","K13.000x001","Q35.900","J39.206","K00.201","K11.700x002","A69.000","C41.000x020","K07.300x008","S02.600x081","D22.201","K05.200","C14.800x006","J31.004","C02.800","Q17.400x002","S01.500x051","J39.200x016","J34.804","H68.000","J04.004","S15.801","D14.103","J03.800","Q30.802","C07.x00","H92.200","H60.002","S10.002","J38.700x003","H61.803","C03.100","C44.201","C11.300x001","D37.000x008","K08.806","Q31.803","S02.600","T17.200","J32.004","K00.605","K09.200","D04.400x001","K07.903","Q32.000","Z42.000x015","H95.900","H70.200","K11.600x005","D21.000x007","K13.200x005","S00.404","K13.010","C03.001","K09.202","Z46.300x001","Q89.800x904","K12.106","B37.800x084","H60.303","D16.402","K06.803","Z41.103","Q31.301","H65.901","J30.200","J38.002","H61.805","K10.800x002","Q16.501","K07.100x017","H65.400x001","K12.200x017","D17.700x007","C01.x01","K09.808","S10.001","K11.901","M95.207","K03.900","D10.301","K10.213","C79.505","A69.000x002","T17.001","K12.205","S01.501","C41.008","C30.001","D23.201","B08.501","R49.100","S00.003","C79.803","C77.003","D00.012","Q17.200","S13.500x006","J30.300x001","K13.706","J39.225","K14.804","Z45.302","Q38.500x002","K07.203","J95.004","C00.001","C11.200","K11.801","K00.700","K04.700","D10.100","H73.900","D10.701","K02.800x006","Q35.302","Q35.907","Q38.002","K09.001","C30.101","J33.800x002","S00.001","K07.200x014","H83.200x001","C08.000","J39.202","Q87.004","M95.005","Q36.906","G47.302","J38.000x031","K12.200x011","H61.103","S02.400x001","C11.101","T85.800x811","D38.500x004","D17.700x020","C32.103","K10.210","K13.014","K09.801","D48.700x007","D37.014","H60.000x005","K11.605","K13.000x006","Q16.300","C03.900x001","B00.200x001","D38.500x005","H93.900x001","Q85.900x035","K04.006","S03.200","D86.802","C14.800x001","A18.600","Q32.100","D38.502","J32.200x005","K07.009","Q75.200x001","T86.802","C43.400x002","S13.500x011","A52.703+J99.8*","K11.805","K11.203","K13.000x023","K03.105","H60.400","K07.100x011","K13.711","K08.809","C30.102","D18.000x507","K13.200x010","Q38.400x002","C10.400","J39.207","D03.201","C03.101","K10.101","S00.500","D03.301","H70.000x009","T27.000x002","K06.810","J01.200","E34.800x005","Q18.003","H61.100x007","K00.601","C01.x00","H70.100","J32.100x005","H65.000x002","C77.008","J02.802","B44.804","Q18.806","D04.300x002","K03.201","K12.200x019","K07.108","D37.005","J32.900x007","C10.100","K00.300x002","J34.801","C03.000","K14.600x001","D18.004","B08.500","K07.602","H70.102","S02.200","Z42.000x019","C11.801","K02.001","K03.801","Q38.500x003","J35.800x009","D16.400x018","Q27.300x010","K12.112","J39.219","K03.300","H65.900","J35.300","J06.900x001","K11.604","H68.101","K10.214","K11.404","K13.401","J32.800x002","C77.001","J34.000x004","K10.205","H74.802","T16.x00","K14.000x006","D18.000x508","Z42.008","D11.701","D10.400","K09.100x003","C43.201","H90.100","J37.002","K13.400","S13.500x003","K04.600","K11.900x004","C00.500x005","K03.300x001","D16.407","D48.200x003","H72.101","K11.401","H91.200","K12.001","D14.001","K13.001","D21.007","D00.005","K00.604","J33.003","Q17.300x002","K05.301","J34.810","C00.500","Q16.900","M95.209","K11.803","Q27.300x007","J03.901","H60.302","I88.102","H91.000","J39.208","Q18.001","D18.000x858","I88.103","H71.x05","C46.200","H70.003","J01.100","K00.207","K08.801","D18.000x510","D38.503","H73.800x005","H80.900","K13.203","J39.221","K10.100x003","Q16.301","A18.205","D37.015","K10.800x005","D14.002","H73.102","Q36.001","S11.800x081","C79.203","K04.200","S09.904","K11.503","C04.000","T85.606","Q38.100","D38.500x003","D17.700x006","S02.400x005","C09.901","E85.409","K09.204","B48.300x002+K93.8*","K10.211","C41.005","C06.901","D48.701","Q67.402","R43.800x002","T81.800x013","Q27.800x036","Q17.501","C43.302","D18.100x011","S01.900","Q35.500x004","C06.001","K09.205","C09.902","Q36.905","D37.012","K04.800","K11.200","K07.006","K10.900x002","C41.100","K08.900","D14.000x006","S15.100","S02.501","D10.602","C41.000x019","K11.402","T18.000","K14.102","K13.700x006","K14.808","S09.101","K14.002","H81.301","K07.110","R06.501","K05.100x012","A18.400x018","K05.100x008","R04.801","K11.601","J11.100x003","Q38.801","K12.110","C49.001","H71.x03","J38.707","Q38.304","Q18.200x003","Q18.800x002","C41.006","K05.201","K07.000x008","C04.800","K03.300x003","S01.506","C00.000","Q38.500x006","J10.101","C30.004","J10.100x003","D37.016","D10.303","S01.200x011","Q35.901","D38.002","K13.710","H70.201","D10.503","D10.306","S02.211","H83.300x001","D14.000x007","D02.302","Q75.804","C43.300","J38.304","H61.100x009","K03.700","J02.900x002","K06.808","C49.002","D21.004","K09.805","J35.805","Q89.800x908","H83.000x001","J04.003","K04.201","K05.400","T70.100","Q89.800x909","J39.215","Q18.800x001","D21.005","K10.801","D02.000x004","K02.800x003","K05.203","D37.007","K10.800x008","J32.901","K01.000","C41.000x018","D04.401","K09.103","J39.200x009","H61.200","H74.801","J38.709","Q85.900x031","D02.002","K03.000x002","H81.902","H70.800x002","J04.100","J37.003","H90.501","S03.100","Q75.400","Q18.100x008","K00.203","D04.201","D11.900","K04.500x001","K14.000x007","S02.401","K00.206","M95.100","J31.003","J39.809","C79.800x843","K13.700x022","K05.600","H70.000x007","C32.102","C32.200","D18.102","C06.100x003","K11.602","J38.700x022","Q38.500x007","C02.300x002","J38.312","J32.003","S02.201","J38.401","J01.300","J32.801","B44.200x001+J99.8*","D11.702","J39.101","C11.300x006","S03.400x001","S13.500x009","S13.501","Q27.302","C11.202","H60.501","C08.800x001","K07.005","K05.104","D37.000x004","K13.600","Q17.802","K03.604","B02.800","S19.802","H92.100x001","H60.300x006","K11.903","K08.102","K13.006","S19.801","C00.301","C13.000","J03.900","K11.209","J38.704","D03.400x002","S15.800x002","S12.815","H93.301","J39.214","C78.300x008","K12.200x018","Q17.300x006","A36.000x002","D00.000x008","K11.200x011","K04.500","K13.703","S13.601","C47.000x010","C06.102","K04.000","J32.800x006","K07.004","S02.812","M95.203","K04.000x007","K09.100x004","C78.305","J38.708","K09.000x005","I77.001","C10.000","K14.900x003","K11.804","J33.000","K06.000","C44.300x006","K05.500x002","Z42.006","J39.222","D23.300x004","C02.101","J04.000x004","K14.000","Q38.003","C44.306","J38.311","K10.803","Q67.406","K13.300","H73.802","K13.700x021","S02.901","K05.100","K10.206","Z42.002","Q89.800x907","J34.108","C47.000x011","J31.203","S02.600x051","D18.000x807","K03.106","H60.301","C05.200","K00.000x003","K13.600x001","J39.811","C13.101","K13.602","C08.900","H80.000x001","K07.300x007","C43.200x003","Q38.802","D10.502","K12.200x003","D14.000x005","C31.300","S01.300x012","C14.800x002","K07.100x015","K12.201","K00.503","Q31.805","K02.800x001","K11.802","H71.x00","S01.802","R04.100","C14.200","J32.000","J01.901","D00.000x007","K08.808","H95.101","H91.200x001","H91.801","C41.011","J39.201","K10.202","K09.806","K07.002","H95.900x001","C11.900","H70.004","Q67.400x202","K07.204","G47.300","J39.213","K13.200x004","C02.400","K02.000","D16.406","C79.500x007","S00.802","S13.500x005","Q18.700","K13.209","J32.001","K07.104","Q35.502","S13.400x005","Z45.801","H66.102","C06.900","K03.100x001","K13.700x009","R59.900","Q38.000x005","J04.200","C79.830","Q18.200","J38.705","K10.001","S08.801","K04.801","Q35.101","S11.001","K12.213","S02.500","C11.001","J34.102","G47.300x036","D37.006","J34.106","S01.200x091","J04.000x006","K11.902","C44.000","J32.800x001","K09.200x001","A18.601+H67.0*","J10.100x001","K10.804","K12.116","K14.801","H66.200","D14.000x009","K09.807","J31.000","Q17.000x005","J95.806","D48.700x025","C79.800x844","K10.201","Q36.900x003","D22.302","K12.111","M95.007","K07.100x009","J33.802","C47.000x007","J38.000x021","H81.000","D18.100x021","J39.200x020","H74.101","H61.902","D48.200x007","J05.000","C11.302","D02.000","K12.202","S01.300x081","J38.313","Z43.000x002","H65.200","K02.100","H92.100","K13.015","J32.900x008","J95.001","C32.300","S17.900","Q18.400","Q35.501","J30.101","J34.802","J32.900","K12.208","S15.002","S17.800","D36.702","Z41.102","C00.500x003","Q85.900x038","D37.013","S03.400","Q18.600","K11.200x012","K06.800x013","D38.507","J34.006","Q30.804","S15.900x001","Q85.900x037","A66.501+J99.8*","K12.117","K00.200x009","Q67.407","Q36.002","Q36.006","H66.000","Q30.800x006","C76.000x007","S02.600x031","D18.100x027","J34.800x006","K12.108","Q16.401","C11.301","Q67.200","Q17.100","K11.701","D21.006","J04.005","S01.500x021","J37.000","J35.804","K14.200","K10.300x003","Q37.500","H83.100","S19.900","Q38.500x005","D00.009","C30.103","H81.101","K11.202","K06.802","A18.201","D37.018","K00.204","D36.700x004","Q35.100","H80.000x002","K10.200","J11.100x004","D18.100x013","S03.501","C79.800x833","K05.500x001","C02.900","C44.307","D00.007","J32.301","K07.800x001","C14.800x004","H70.800x001","S00.500x052","Q18.802","S10.101","C41.000x027","M95.210","K07.000x004","S02.600x091","K12.206","S00.300","D10.200","K02.200","S00.800x055","Q38.600x002","Z43.001","H72.100","K07.200x013","K06.809","J39.900","C11.300x005","D10.000x002","S13.500x010","C79.831","K07.200x001","S00.000x053","Z46.400","J32.800x004","K00.400x004","Q36.004","Z46.100","S02.803","K03.200x002","T17.000","Q18.102","A18.800x025+K93.8*","K04.900","K06.000x003","H81.400x003","K14.800x005","D03.200x002","D37.000x015","K07.300x006","Q18.103","D10.601","K09.002","H83.900x001","D44.600x002","K14.900x004","D48.200x009","S02.802","D22.301","H70.002","A36.000x004","C05.000","J39.204","T28.502","J30.400","J38.702","Z42.010","D16.400x013","B49.x10","K12.200x012","D21.001","C06.000","K04.002","K05.105","C09.800","M95.001","K13.700x018","K12.204","Q87.006","S10.004","J01.400","K13.700x003","K10.207","K13.700x023","K12.215","D16.410","K05.103","J38.601","K00.600x007","D10.000x003","J38.715","M35.900x011","H93.200x005","K11.211","K11.800","B44.800x001","H81.200","D02.000x003","K11.603","K08.101","Q37.900","Q31.800x005","C79.804","K07.011","S01.300x071","J38.300x008","K07.202","Q18.903","K10.800x012","J34.104","K04.100","K10.208","K13.200x009","S15.301","H80.200","J32.803","K07.000x012","S00.402","K00.400x002","D10.900","D10.101","J32.904","C14.000","K07.106","J95.000x007","S10.801","C00.402","C00.300","S02.810","C05.100","K06.901","S03.000x001","T81.804","J10.800","Q85.900x012","S15.001","H61.300","J02.902","T27.402","B36.903+H62.2*","Q18.801","A52.700x004+J99.8*","J36.x00","H66.101","Q30.900","S02.411","K03.602","J33.801","A18.805+K93.8*","Q30.800x003","S01.301","C11.201","J32.800x011","H91.100","T81.800x008","K02.800x008","Q16.102","H61.800x005","C41.012","Q18.200x004","Q18.400x004","Q89.800x903","J95.000x001","C78.300x006","K12.100x011","K00.502","K07.304","C77.002","Q38.301","J38.200x001","C02.300x003","K10.002","K09.005","Q30.300","J34.008","K00.501","K02.901","D11.900x001","J38.000x022","K00.001","J00.x00x004","Q75.805","S02.600x021","J38.712","D37.003","S09.900x006","C79.504","J32.906","S01.500x052","C44.300x005","H60.901","Q35.500","I88.104","S12.803","C05.800","H61.101","C76.004","K00.500x002","C31.200","D21.000x008","D38.001","J02.901","K13.705","B37.002","J38.310","C79.502","K10.800x011","K13.702","Q16.901","C44.200x001","K12.303","C79.835","C13.100x002","C11.000","D16.401","H90.200","K08.104","S03.000","J31.100","J32.900x010","J39.200x015","C10.900","H70.800","J02.000","J38.700x007","K13.207","K09.201","H74.000","G47.300x037","J38.305","K10.901","B48.100","Q38.502","C79.201","K05.000x002","J32.903","Q31.500","C00.403","K07.000x002","S00.004","S01.401","C43.200x001","J32.400","Q89.800x905","Q31.800x003","H90.400","C49.000x004","J35.809","Q27.800x028","Q30.000","D02.301","Q36.900","S11.100x001","Q30.800x005","M95.201","D02.300","S17.001","J10.100","S09.903","K06.800x012","C41.001","D38.509","C11.901","K14.302","C78.303","J34.800x020","S01.300x051","D48.200x004","H93.201","J35.800x008","D48.518","H83.801","J02.900x005","Q31.900","D16.411","S08.100","K03.000","Q38.400","H81.901","K11.606","H83.000","D16.409","C14.003","H95.000x001","K07.100x014","K07.900","K14.400","Q37.300","K04.501","J39.002","H93.300","C32.900","K11.800x002","S02.800x003","T17.101","D10.603","J31.201","J39.000x001","K05.300","J38.700x021","D18.101","C02.200x002","K00.200x002","H60.001","K13.007","J05.100","S13.403","K09.000x007","K13.700x024","T17.200x001","D10.200x002","K13.400x004","Q31.200","Q35.301","D00.008","K11.807","A18.400x019","J02.801","K13.008","C10.800","J31.204","E11.600x032","J00.x00","J34.800x004","K13.205","C00.401","S00.300x051","D10.300x005","D23.200x002","K12.209","D17.000x003","J95.000x002","S00.800x056","K13.000x012","K02.400x002","Q36.904","K13.700x019","Q38.501","K12.216","B49.x06","J34.002","D18.000x021","K05.300x002","K00.402","C79.832","D37.017","C41.000x025","S11.800x082","Q18.800x003","K14.300x003","K00.101","H70.103","Q18.002","S19.800x002","D36.701","S11.004","D23.200x003","K11.101","J38.700x017","J32.800x009","C31.100","K13.402","J32.300","D37.000x003","S00.700","Q18.500","D23.000","K03.800x001","H60.801","K11.200x009","K07.200x003","K12.107","Q36.903","Q38.500x009","D18.000x504","K04.803","K08.805","D10.402","K07.302","K03.800x005","J37.004","D10.302","K14.400x001","S11.700","K03.500","B49.x07","A18.202","K07.300x003","K12.002","S01.502","K10.805","C13.900","C79.800x825","S00.900","S15.200","J33.100","K14.401","J38.701","H65.101","K12.301","C79.834","Q18.100x006","Q89.202","S10.901","S01.500x001","J11.100x002","K09.804","C09.100x002","D48.200x002","K14.500x002","H71.x02","C14.800","H93.100","H68.100x003","S12.814","J38.309","K11.303","K14.809","Q17.801","C49.005","T28.000x003","K00.400","K04.300","C78.302","K10.102","Q16.400","H71.x01","H60.000x004","Q30.201","K11.208","A18.200x005","K04.200x003","J39.300","S09.801","D17.700x003","J06.800x001","C06.800","Q27.800x040","C31.000","L02.000","K07.301","Q35.902","K13.400x001","H72.800","J38.716","Q17.500","C78.300x005","J34.807","K08.804","J31.002","J32.100","H83.000x002","D14.100x002","J36.x00x003","D37.000x001","Q67.300","K00.200x003","Q17.002","H93.200x002","K07.101","D23.301","J32.101","K13.200x006","C08.100","K02.400x003","Q38.000x003","Q35.903","H60.000x002","C32.100x004","D18.000x503","J38.000x001","J35.807","K07.200x002","K09.809","Q30.801","K06.805","H60.300","C76.002","Q30.100x001","Q37.800","I88.900x007","B37.200x005+H62.2*","S13.500","D37.000x009","K14.800x012","D38.501","B49.x08","H83.200","J38.000x012","S13.500x008","C77.000x005","R44.201","A69.100x002","Q30.800x004","C41.002","K10.800x010","C09.100","K13.013","K11.207","D37.009","K00.000","K13.002","K05.200x002","C02.100x001","Q38.305","K09.100x001","K10.204","K08.103","H66.001","J95.501","I77.003","J34.007","H80.800x001","C12.x00x002","K04.400","K02.500","C77.005","D21.000x002","S01.500x042","H90.502","J39.200x008","D22.401","H72.000","D18.000x511","S10.000x003","K10.302","K00.100x001","C39.801","K09.003","S03.301","D38.500x001","K12.304","Q36.003","C76.005","C00.200","Z42.000x002","J33.000x002","K14.100x001","A69.100x001","K06.000x002","S13.500x007","B08.000x003","K11.000","S01.302","S00.800x054","K11.501","J95.000","C79.500x004","Q85.905","D23.300x003","D37.000x010","C77.007","K11.206","K06.800x014","T16.x00x002","M95.205","Q17.302","J38.300x013","Q18.101","K12.211","K00.200x005","Q30.800x008","K06.100x001","C07.x00x003","C32.100","C32.001","J31.202","K10.000x004","T85.607","C00.500x004","C13.200","K14.805","D23.303","H81.900","C32.101","C79.800x828","K13.208","K07.107","J00.x00x007","T27.000x003","B08.802","H71.x04","D37.011","K13.403","R49.001","C02.100","C32.000","K13.500","J38.300x015","H60.100x001","S01.000","J32.302","A18.803+M63.0*","C11.300x004","K02.400x001","K06.900","Q67.405","D18.003","J35.801","M95.006","S13.502","H83.200x002","C31.900x001","K13.700x026","K13.202","Q37.400","B44.800x004+H62.2*","M95.208","H60.000","D10.000x004","H91.900x004","K00.600x002","J32.900x009","K07.012","Q27.802","Z43.000","K10.800x006","J34.800x034","D48.200x008","J38.700x001","Q38.701","Q89.800x906","J38.201","K11.100x002","K04.001","K05.204","K07.000x013","K06.100x002","K14.800x003","S02.813","J95.805","Q16.500","J95.803","K12.302","H74.400","Q18.300","H93.901","K14.001","Q18.104","D00.006","D38.506","C00.600","K11.400","S01.200x031","C05.900x002","J10.100x002","D00.001","K00.200x010","K12.203","C41.010","J32.000x005","H73.000","D14.005","Q38.600x006","S01.300x011","E85.402","K10.000","J38.721","H60.400x004","S01.505","H90.700","Q38.300x003","K10.000x002","D38.000x001","H73.100","K04.702","K13.715","Q38.303","D14.000x010","S00.400","I86.000","J31.001","C02.300","J39.001","K12.003","K13.700x001","C00.303","Z45.301","H74.900","J38.200","C43.401","H74.201","C79.800x826","D14.100","C04.100","K14.807","H61.000","K05.106","S01.400x021","K14.300","D48.519","J36.x00x001","H60.900","K02.101","H80.100x001","C44.305","J30.300x002","K11.600","D11.000","S01.200x021","Q38.004","J38.300x018","K09.100x006","D16.404","K05.100x011","A36.000x003","Q17.800x004","J39.209","C47.000x008","H61.104","Q17.000x003","C00.500x002","Q38.600x001","C41.003","J38.600","H81.400","K12.305","D37.000x002","Z42.009","J35.808","K00.602","C43.000","H83.800x002","J39.003","Q31.801","K13.603","H81.302","R49.202","J33.001","Q17.003","K11.210","S01.200x092","Z42.007","S02.912","C41.004","K12.114","K14.901","G47.301","J95.400","S00.401","C79.500x016","K02.800x007","S01.803","J38.308","Q27.800x024","Q35.700","D10.307","K11.700x001","J34.800x019","J32.002","K11.806","C06.100x002","E10.600x031","J11.102","J32.800x008","K11.100x004","H72.200","R07.000","K08.300x002","K06.100","T85.800x810","J00.x00x006","Q38.300x005","J37.001","D36.700x007","S00.804","K00.401","T18.002","K13.714","K03.103","K04.901","K13.700x013","D02.001","H91.900","H92.000","Q30.001","H61.801","D37.002","J30.000","Q38.601","K03.102","H70.900","K00.608","J34.300","Q36.005","J37.005","J02.900","C00.900","D10.308","S00.501","C79.800x824","H93.800x001","K12.000","C00.304","S17.000x002","J01.000","J06.900","S01.503","H93.103","A18.200x002","J32.900x011","H65.102","K13.700","D00.004","Z45.304","J38.307","J34.003","A18.804+K93.8*","J34.001","K07.205","D37.000x012","C01.x00x003","S00.801","K08.204","Q31.806","D03.401","K11.400x003","K07.000x009","R59.000x004","M95.202","H60.300x005","Q17.301","H65.900x001","H91.001","Q18.100x009","Q31.000","K07.010","D37.004","Z42.005","H61.105","Q30.101","K08.807","K13.000x017","K02.800x002","Q18.900x002","K04.701","C44.400x004","K04.401","K13.201","K10.100x001","K12.000x001","K13.700x025","B36.902+H62.2*","G47.300x031","J33.805","J32.200","I88.101","J39.216","A69.100x003","J95.809","C10.101","K07.000x011","Q36.000","J38.402","J04.000","H73.803","H95.900x002","I89.000x014","J38.710","D00.003","C08.900x001","C41.009","C00.100","S11.003","J38.200x002","J34.107","S13.401","K07.109","K09.102","K13.601","J38.001","S15.300","D16.500","D14.101","C79.202","K08.000","J01.800","J39.203","D38.000x002","H66.400","J32.201","D38.505","S02.400x003","K13.210","C09.100x001","H81.303","J38.720","C44.304","D10.000x005","H73.804","C04.900","J38.714","S00.302","J38.400x002","A36.200","K11.300","K07.100x016","D04.200x001","A36.200x002","S01.400x031","C00.101","K12.101","M85.000x081","D16.400x025","Q37.100","K10.100","J32.300x004","J36.x00x004","G47.300x001","J35.200","D23.200x008","K14.500x001","S02.600x011","Q38.001","K05.100x013","J39.220","J02.903","C11.200x002","A18.802+K93.8*","J35.100","H61.100x006","Q27.800x030","K05.202","K13.709","C00.002","K03.601","K11.205","D10.504","H61.802","H68.100","K05.500x003","H70.000","H83.302","A36.100","C00.400","D48.200x005","K05.102","D16.500x002","J95.800x001","K03.001","S10.902","D14.007","D18.100x007","S13.400x003","K07.200x012","H69.900","C49.004","T17.002","H73.101","S08.000","K13.003","S00.400x052","H60.300x003","E85.405","K06.200","T85.800x804","K12.210","K09.000","J00.x00x008","K11.200x014","J35.802","J34.200","C39.000","D37.000x005","Q17.001","K02.900x001","J39.205","H70.001","D48.702","H83.200x003","H60.500x006","K00.301","D37.001","D37.010","K02.300","J34.800x001","R49.000","E14.600x032","D14.003","S08.800","H60.500x007","C30.100","C00.200x002","D38.508","D18.000x844","K07.604","K10.103","J38.711","K11.600x008","D36.703","H60.502","K07.102","D00.010","H60.100","J32.802","C77.006","S12.813","J04.002","D37.008","Q17.300x005","K14.800x010","J38.500","G47.303","K07.103","J95.807","D10.600","K07.200x011","K11.700x003","J30.100","M95.206","Q30.805","Q75.801","A18.800x034+K93.8*","C13.800","J34.805","Q31.802","H91.300x001","K07.901","K14.003","Q30.200x001","K12.100x013","S09.905","H60.100x002","K03.603","K13.009","D04.000","D18.000x845","Q38.000x006","J11.100x001","C13.100x001","D10.300x007","S09.902","S10.900","C47.000x005","M95.003","S11.900","C10.200","K05.101","J95.003","Q38.000x007","H61.806","J95.500","D16.405","J39.223","Q67.403","D04.300x001","K07.600x003","J33.900","K05.500x005","S01.300x002","K00.002","J34.004","K03.800x002","H61.100x005","K12.115","D38.504","C76.001","H93.102","G47.304","J38.706","C32.800","K13.700x010","H65.400","Q17.300x004","D48.200x006","J34.806","K03.401","J06.000x002","J33.804","J38.301","S02.700x004","B87.300x002+J99.8*","K13.016","H60.300x002","K12.218","C47.000x004","D37.000x013","S01.504","K06.807","J32.200x004","C79.802","Q31.800x004","C06.100x005","J32.800x003","K13.707","Q38.700","K03.800x003","H61.102","Q27.800x021","K03.300x002","J34.005","K04.902","C09.100x003","Q17.000","C71.900x010","Q35.300","K07.000x007","S01.400x011","K12.212","K13.500x002","C76.000x002","J39.217","K11.800x006","J06.000","Q87.000x301","E85.410","M85.000x083","S02.600x041","K04.802","S09.906","K00.205","D21.002","H95.102","J32.400x001","K03.202","S02.500x002","J95.002","H65.300","J34.811","S09.200","D00.013","Q67.404","Q75.900x005","C77.004","D36.700x006","K07.201","S03.400x002","K03.204","K07.902","Q27.800x026","J01.900","K10.203","C09.000","A52.700x003+J99.8*","H60.401","H73.001","J31.005","C05.900","Q31.100","J38.300x016","K08.302","C03.901","S10.003","J03.900x001","K06.804","J38.400x003","T16.x00x001","D09.701","J35.806","S17.801","Q36.902","K03.101","T18.001","J32.005","J34.105","J34.809","H91.900x002","D14.102","B44.800x007","D14.006","K14.004","J11.802+H67.1*","C79.500x028","Q36.100","M31.300","S02.611","S15.003","K14.301","C06.200","K07.105","H66.301","K13.004","C76.006","K13.704","S09.900","K00.900","H66.900x002","K04.101","S01.804","J03.902","K03.203","H66.900","H61.001","G47.300x033","Q18.804","H70.101","J38.300x011","S13.500x004","K11.800x010","K13.000x018","H61.901","K12.102","K07.100x012","J37.100","C79.800x845","C14.800x007","K07.008","C78.300x004","J38.000x032"};
        String[] dept_list={};
        if (!(true && Base.contains(mdc_zd,record.zdList[0]))){
            return "";
        }
        
        Base.groupMessages.putMessage(record.Index,"符合MDCD入组条件，匹配规则：主诊断匹配");
        String result;

        result=DA1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB3.group(record);
        if (result.length()>0){
            return result;
        }

        result=DC1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DC2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DD1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DD2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DE1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DE2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DG1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DG2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DJ1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DK1.group(record);
        if (result.length()>0){
            return result;
        }

        if (record.ssList!=null && record.ssList.length>0 && Base.contains(Base.SS_VALID,record.ssList[0])){
            Base.groupMessages.putMessage(record.Index,"符合DQY入组条件，存在有效手术操作："+String.join(",",Base.Intersect(record.ssList,Base.SS_VALID)));
            return "DQY";
        }

        result=DR1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DS1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DT1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DT2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DU1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DV1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DW1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DZ1.group(record);
        if (result.length()>0){
            return result;
        }

        Base.groupMessages.putMessage(record.Index,"不符合MDCD的ADRG入组条件");
        return "";
    }
}

